home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_unzip.idb / usr / freeware / catman / u_man / cat1 / zipinfo.Z / zipinfo
Text File  |  1998-05-21  |  27KB  |  595 lines

  1.  
  2.  
  3.  
  4.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       zipinfo - list detailed information about a ZIP archive
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       zzzziiiippppiiiinnnnffffoooo [----11112222ssssmmmmllllvvvvhhhhMMMMttttTTTTzzzz] _f_i_l_e[._z_i_p] [_f_i_l_e(_s) ...]
  13.       [----xxxx _x_f_i_l_e(_s) ...]
  14.  
  15.       uuuunnnnzzzziiiipppp    ----ZZZZ [----11112222ssssmmmmllllvvvvhhhhMMMMttttTTTTzzzz] _f_i_l_e[._z_i_p] [_f_i_l_e(_s) ...]
  16.       [----xxxx _x_f_i_l_e(_s) ...]
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.       _z_i_p_i_n_f_o lists    technical information about files in a ZIP
  20.       archive, most    commonly found on MS-DOS systems.  Such
  21.       information includes file access permissions,    encryption
  22.       status, type of compression, version and operating system or
  23.       file system of compressing program, and the like.  The
  24.       default behavior (with no options) is    to list    single-line
  25.       entries for each file    in the archive,    with header and
  26.       trailer lines    providing summary information for the entire
  27.       archive.  The    format is a cross between Unix ``ls -l'' and
  28.       ``unzip -v'' output.    See DDDDEEEETTTTAAAAIIIILLLLEEEEDDDD DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN below.     Note
  29.       that _z_i_p_i_n_f_o is the same program as _u_n_z_i_p (under Unix, a
  30.       link to it); on some systems,    however, _z_i_p_i_n_f_o support may
  31.       have been omitted when _u_n_z_i_p was compiled.
  32.  
  33.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  34.       _f_i_l_e[._z_i_p]
  35.            Path of the ZIP archive(s).  If the file    specification
  36.            is a wildcard, each matching file is processed in an
  37.            order determined    by the operating system    (or file
  38.            system).     Only the filename can be a wildcard; the path
  39.            itself cannot.  Wildcard    expressions are    similar    to
  40.            Unix _e_g_r_e_p(1) (regular) expressions and may contain:
  41.  
  42.            *    matches a sequence of 0 or more characters
  43.  
  44.            ?    matches exactly 1 character
  45.  
  46.            [...]
  47.             matches any    single character found inside the
  48.             brackets; ranges are specified by a    beginning
  49.             character, a hyphen, and an    ending character.  If
  50.             an exclamation point or a caret (`!' or `^')
  51.             follows the    left bracket, then the range of
  52.             characters within the brackets is complemented
  53.             (that is, anything _e_x_c_e_p_t the characters inside
  54.             the    brackets is considered a match).
  55.  
  56.            (Be sure    to quote any character that might otherwise be
  57.            interpreted or modified by the operating    system,
  58.            particularly under Unix and VMS.)  If no    matches    are
  59.            found, the specification    is assumed to be a literal
  60.  
  61.  
  62.  
  63.      Page 1                          (printed 5/6/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  71.  
  72.  
  73.  
  74.            filename; and if    that also fails, the suffix .zip is
  75.            appended.  Note that self-extracting ZIP    files are
  76.            supported; just specify the .exe    suffix (if any)
  77.            explicitly.
  78.  
  79.       [_f_i_l_e(_s)]
  80.            An optional list    of archive members to be processed.
  81.            Regular expressions (wildcards) may be used to match
  82.            multiple    members; see above.  Again, be sure to quote
  83.            expressions that    would otherwise    be expanded or
  84.            modified    by the operating system.
  85.  
  86.       [----xxxx _x_f_i_l_e(_s)]
  87.            An optional list    of archive members to be excluded from
  88.            processing.
  89.  
  90.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  91.       ----1111   list filenames only, one    per line.  This    option
  92.            excludes    all others; headers, trailers and zipfile
  93.            comments    are never printed.  It is intended for use in
  94.            Unix shell scripts.
  95.  
  96.       ----2222   list filenames only, one    per line, but allow headers
  97.            (----hhhh), trailers (----tttt) and zipfile comments    (----zzzz), as well.
  98.            This option may be useful in cases where    the stored
  99.            filenames are particularly long.
  100.  
  101.       ----ssss   list zipfile info in short Unix ``ls -l'' format.  This
  102.            is the default behavior;    see below.
  103.  
  104.       ----mmmm   list zipfile info in medium Unix    ``ls -l'' format.
  105.            Identical to the    ----ssss output, except that the compression
  106.            factor, expressed as a percentage, is also listed.
  107.  
  108.       ----llll   list zipfile info in long Unix ``ls -l''    format.     As
  109.            with ----mmmm except that the compressed size (in bytes) is
  110.            printed instead of the compression ratio.
  111.  
  112.       ----vvvv   list zipfile information    in verbose, multi-page format.
  113.  
  114.       ----hhhh   list header line.  The archive name, actual size    (in
  115.            bytes) and total    number of files    is printed.
  116.  
  117.       ----MMMM   pipe all    output through an internal pager similar to
  118.            the Unix    _m_o_r_e(1)    command.  At the end of    a screenful of
  119.            output, _z_i_p_i_n_f_o pauses with a ``--More--'' prompt; the
  120.            next screenful may be viewed by pressing    the Enter
  121.            (Return)    key or the space bar.  _z_i_p_i_n_f_o can be
  122.            terminated by pressing the ``q''    key and, on some
  123.            systems,    the Enter/Return key.  Unlike Unix _m_o_r_e(1),
  124.            there is    no forward-searching or    editing    capability.
  125.            Also, _z_i_p_i_n_f_o doesn't notice if long lines wrap at the
  126.  
  127.  
  128.  
  129.      Page 2                          (printed 5/6/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  137.  
  138.  
  139.  
  140.            edge of the screen, effectively resulting in the
  141.            printing    of two or more lines and the likelihood    that
  142.            some text will scroll off the top of the    screen before
  143.            being viewed.  On some systems the number of available
  144.            lines on    the screen is not detected, in which case
  145.            _z_i_p_i_n_f_o assumes the height is 24    lines.
  146.  
  147.       ----tttt   list totals for files listed or for all files.  The
  148.            number of files listed, their uncompressed and
  149.            compressed total    sizes, and their overall compression
  150.            factor is printed; or, if only the totals line is being
  151.            printed,    the values for the entire archive are given.
  152.            Note that the total compressed (data) size will never
  153.            match the actual    zipfile    size, since the    latter
  154.            includes    all of the internal zipfile headers in
  155.            addition    to the compressed data.
  156.  
  157.       ----TTTT   print the file dates and    times in a sortable decimal
  158.            format (yymmdd.hhmmss).    The default date format    is a
  159.            more standard, human-readable version with abbreviated
  160.            month names (see    examples below).
  161.  
  162.       ----zzzz   include the archive comment (if any) in the listing.
  163.  
  164.      DDDDEEEETTTTAAAAIIIILLLLEEEEDDDD DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  165.       _z_i_p_i_n_f_o has a    number of modes, and its behavior can be
  166.       rather difficult to fathom if    one isn't familiar with    Unix
  167.       _l_s(1)    (or even if one    is).  The default behavior is to list
  168.       files    in the following format:
  169.  
  170.      -rw-rws---     1.9 unx    2802 t- defX 11-Aug-91 13:48 perms.2660
  171.  
  172.       The last three fields    are the    modification date and time of
  173.       the file, and    its name.  The case of the filename is
  174.       respected; thus files    that come from MS-DOS PKZIP are    always
  175.       capitalized.    If the file was    zipped with a stored directory
  176.       name,    that is    also displayed as part of the filename.
  177.  
  178.       The second and third fields indicate that the    file was
  179.       zipped under Unix with version 1.9 of    _z_i_p.  Since it comes
  180.       from Unix, the file permissions at the beginning of the line
  181.       are printed in Unix format.  The uncompressed    file-size
  182.       (2802    in this    example) is the    fourth field.
  183.  
  184.       The fifth field consists of two characters, either of    which
  185.       may take on several values.  The first character may be
  186.       either `t' or    `b', indicating    that _z_i_p believes the file to
  187.       be text or binary, respectively; but if the file is
  188.       encrypted, _z_i_p_i_n_f_o notes this    fact by    capitalizing the
  189.       character (`T' or `B').  The second character    may also take
  190.       on four values, depending on whether there is    an extended
  191.       local    header and/or an ``extra field'' associated with the
  192.  
  193.  
  194.  
  195.      Page 3                          (printed 5/6/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  203.  
  204.  
  205.  
  206.       file (fully explained    in PKWare's APPNOTE.TXT, but basically
  207.       analogous to pragmas in ANSI C--i.e.,    they provide a
  208.       standard way to include non-standard information in the
  209.       archive).  If    neither    exists,    the character will be a    hyphen
  210.       (`-'); if there is an    extended local header but no extra
  211.       field, `l'; if the reverse, `x'; and if both exist, `X'.
  212.       Thus the file    in this    example    is (probably) a    text file, is
  213.       not encrypted, and has neither an extra field    nor an
  214.       extended local header    associated with    it.  The example
  215.       below, on the    other hand, is an encrypted binary file    with
  216.       an extra field:
  217.  
  218.      RWD,R,R     0.9 vms     168 Bx shrk  9-Aug-91 19:15 perms.0644
  219.  
  220.       Extra    fields are used    for various purposes (see discussion
  221.       of the ----vvvv option below) including the    storage    of VMS file
  222.       attributes, which is presumably the case here.  Note that
  223.       the file attributes are listed in VMS    format.     Some other
  224.       possibilities    for the    host operating system (which is
  225.       actually a misnomer--host file system    is more    correct)
  226.       include OS/2 or NT with High Performance File    System (HPFS),
  227.       MS-DOS, OS/2 or NT with File Allocation Table    (FAT) file
  228.       system, and Macintosh.  These    are denoted as follows:
  229.  
  230.      -rw-a--     1.0 hpf    5358 Tl i4:3  4-Dec-91 11:33 longfilename.hpfs
  231.      -r--ahs     1.1 fat    4096 b- i4:2 14-Jul-91 12:58 EA DATA. SF
  232.      --w-------     1.0 mac   17357 bx i8:2  4-May-92 04:02 unzip.macr
  233.  
  234.       File attributes in the first two cases are indicated in a
  235.       Unix-like format, where the seven subfields indicate whether
  236.       the file:  (1) is a directory, (2) is    readable (always
  237.       true), (3) is    writable, (4) is executable (guessed on    the
  238.       basis    of the extension--._e_x_e,    ._c_o_m, ._b_a_t, ._c_m_d and ._b_t_m
  239.       files    are assumed to be so), (5) has its archive bit set,
  240.       (6) is hidden, and (7) is a system file.  Interpretation of
  241.       Macintosh file attributes is unreliable because some
  242.       Macintosh archivers don't store any attributes in the
  243.       archive.
  244.  
  245.       Finally, the sixth field indicates the compression method
  246.       and possible sub-method used.     There are six methods known
  247.       at present:  storing (no compression), reducing, shrinking,
  248.       imploding, tokenizing    (never publicly    released), and
  249.       deflating.  In addition, there are four levels of reducing
  250.       (1 through 4); four types of imploding (4K or    8K sliding
  251.       dictionary, and 2 or 3 Shannon-Fano trees); and four levels
  252.       of deflating (superfast, fast, normal, maximum compression).
  253.       _z_i_p_i_n_f_o represents these methods and their sub-methods as
  254.       follows:  _s_t_o_r; _r_e:_1,    _r_e:_2, etc.; _s_h_r_k; _i_4:_2,    _i_8:_3, etc.;
  255.       _t_o_k_n;    and _d_e_f_S, _d_e_f_F,    _d_e_f_N, and _d_e_f_X.
  256.  
  257.       The medium and long listings are almost identical to the
  258.  
  259.  
  260.  
  261.      Page 4                          (printed 5/6/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  269.  
  270.  
  271.  
  272.       short    format except that they    add information    on the file's
  273.       compression.    The medium format lists    the file's compression
  274.       factor as a percentage indicating the    amount of space    that
  275.       has been ``removed'':
  276.  
  277.      -rw-rws---     1.5 unx    2802 t- 81%    defX 11-Aug-91 13:48 perms.2660
  278.  
  279.       In this example, the file has    been compressed    by more    than a
  280.       factor of five; the compressed data are only 19% of the
  281.       original size.  The long format gives    the compressed file's
  282.       size in bytes, instead:
  283.  
  284.      -rw-rws---     1.5 unx    2802 t-    538 defX 11-Aug-91 13:48 perms.2660
  285.  
  286.       Adding the ----TTTT    option changes the file    date and time to
  287.       decimal format:
  288.  
  289.      -rw-rws---     1.5 unx    2802 t-    538 defX 910811.134804 perms.2660
  290.  
  291.       Note that because of limitations in the MS-DOS format    used
  292.       to store file    times, the seconds field is always rounded to
  293.       the nearest even second.  For    Unix files this    is expected to
  294.       change in the    next major releases of _z_i_p(1L) and _u_n_z_i_p.
  295.  
  296.       In addition to individual file information, a    default
  297.       zipfile listing also includes    header and trailer lines:
  298.  
  299.      Archive:  OS2.zip     5453 bytes   5    files
  300.      ,,rw,     1.0 hpf     730 b- i4:3 26-Jun-92 23:40 Contents
  301.      ,,rw,     1.0 hpf    3710 b- i4:3 26-Jun-92 23:33 makefile.os2
  302.      ,,rw,     1.0 hpf    8753 b- i8:3 26-Jun-92 15:29 os2unzip.c
  303.      ,,rw,     1.0 hpf      98 b- stor 21-Aug-91 15:34 unzip.def
  304.      ,,rw,     1.0 hpf      95 b- stor 21-Aug-91 17:51 zipinfo.def
  305.      5 files, 13386 bytes uncompressed,    4951 bytes compressed:    63.0%
  306.  
  307.       The header line gives    the name of the    archive, its total
  308.       size,    and the    total number of    files; the trailer gives the
  309.       number of files listed, their    total uncompressed size, and
  310.       their    total compressed size (not including any of _z_i_p's
  311.       internal overhead).  If, however, one    or more    _f_i_l_e(_s)    are
  312.       provided, the    header and trailer lines are not listed.  This
  313.       behavior is also similar to that of Unix's ``ls -l'';    it may
  314.       be overridden    by specifying the ----hhhh and ----tttt options
  315.       explicitly.  In such a case the listing format must also be
  316.       specified explicitly,    since ----hhhh or ----tttt (or both) in the
  317.       absence of other options implies that    ONLY the header    or
  318.       trailer line (or both) is listed.  See the EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS section
  319.       below    for a semi-intelligible    translation of this nonsense.
  320.  
  321.       The verbose listing is mostly    self-explanatory.  It also
  322.       lists    file comments and the zipfile comment, if any, and the
  323.       type and number of bytes in any stored extra fields.
  324.  
  325.  
  326.  
  327.      Page 5                          (printed 5/6/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  335.  
  336.  
  337.  
  338.       Currently known types    of extra fields    include    PKWARE's
  339.       authentication (``AV'') info;    OS/2 extended attributes; VMS
  340.       filesystem info, both    PKWARE and Info-ZIP versions;
  341.       Macintosh resource forks; Acorn/Archimedes SparkFS info; and
  342.       so on.  (Note    that in    the case of OS/2 extended attributes-
  343.       -perhaps the most common use of zipfile extra    fields--the
  344.       size of the stored EAs as reported by    _z_i_p_i_n_f_o    may not    match
  345.       the number given by OS/2's _d_i_r command:  OS/2    always reports
  346.       the number of    bytes required in 16-bit format, whereas
  347.       _z_i_p_i_n_f_o always reports the 32-bit storage.)
  348.  
  349.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT OOOOPPPPTTTTIIIIOOOONNNNSSSS
  350.       Modifying _z_i_p_i_n_f_o's default behavior via options placed in
  351.       an environment variable can be a bit complicated to explain,
  352.       due to _z_i_p_i_n_f_o's attempts to handle various defaults in an
  353.       intuitive, yet Unix-like, manner.  (Try not to laugh.)
  354.       Nevertheless,    there is some underlying logic.     In brief,
  355.       there    are three ``priority levels'' of options:  the default
  356.       options; environment options,    which can override or add to
  357.       the defaults;    and explicit options given by the user,    which
  358.       can override or add to either    of the above.
  359.  
  360.       The default listing format, as noted above, corresponds
  361.       roughly to the "zipinfo -hst"    command    (except    when
  362.       individual zipfile members are specified).  A    user who
  363.       prefers the long-listing format (----llll) can make    use of the
  364.       _z_i_p_i_n_f_o's environment    variable to change this    default:
  365.  
  366.           ZIPINFO=-l; export ZIPINFO    Unix Bourne    shell
  367.           setenv ZIPINFO -l            Unix C shell
  368.           set ZIPINFO=-l            OS/2 or MS-DOS
  369.           define ZIPINFO_OPTS "-l"        VMS    (quotes    for _l_o_w_e_r_c_a_s_e)
  370.  
  371.       If, in addition, the user dislikes the trailer line,
  372.       _z_i_p_i_n_f_o's concept of ``negative options'' may    be used    to
  373.       override the default inclusion of the    line.  This is
  374.       accomplished by preceding the    undesired option with one or
  375.       more minuses:     e.g., ``-l-t''    or ``--tl'', in    this example.
  376.       The first hyphen is the regular switch character, but    the
  377.       one before the `t' is    a minus    sign.  The dual    use of hyphens
  378.       may seem a little awkward, but it's reasonably intuitive
  379.       nonetheless:    simply ignore the first    hyphen and go from
  380.       there.  It is    also consistent    with the behavior of the Unix
  381.       command _n_i_c_e(1).
  382.  
  383.       As suggested above, the default variable names are
  384.       ZIPINFO_OPTS for VMS (where the symbol used to install
  385.       _z_i_p_i_n_f_o as a foreign command would otherwise be confused
  386.       with the environment variable), and ZIPINFO for all other
  387.       operating systems.  For compatibility    with _z_i_p(1L),
  388.       ZIPINFOOPT is    also accepted (don't ask).  If both ZIPINFO
  389.       and ZIPINFOOPT are defined, however, ZIPINFO takes
  390.  
  391.  
  392.  
  393.      Page 6                          (printed 5/6/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  401.  
  402.  
  403.  
  404.       precedence.  _u_n_z_i_p's diagnostic option (----vvvv with no zipfile
  405.       name)    can be used to check the values    of all four possible
  406.       _u_n_z_i_p    and _z_i_p_i_n_f_o environment    variables.
  407.  
  408.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  409.       To get a basic, short-format listing of the complete
  410.       contents of a    ZIP archive _s_t_o_r_a_g_e._z_i_p, with both header and
  411.       totals lines,    use only the archive name as an    argument to
  412.       zipinfo:
  413.  
  414.           zipinfo storage
  415.  
  416.       To produce a basic, long-format listing (not verbose),
  417.       including header and totals lines, use ----llll:
  418.  
  419.           zipinfo -l storage
  420.  
  421.       To list the complete contents    of the archive without header
  422.       and totals lines, either negate the ----hhhh and ----tttt    options    or
  423.       else specify the contents explicitly:
  424.  
  425.           zipinfo --h-t storage
  426.           zipinfo storage \*
  427.  
  428.       (where the backslash is required only    if the shell would
  429.       otherwise expand the `*' wildcard, as    in Unix    when globbing
  430.       is turned on--double quotes around the asterisk would    have
  431.       worked as well).  To turn off    the totals line    by default,
  432.       use the environment variable (C shell    is assumed here):
  433.  
  434.           setenv ZIPINFO --t
  435.           zipinfo storage
  436.  
  437.       To get the full, short-format    listing    of the first example
  438.       again, given that the    environment variable is    set as in the
  439.       previous example, it is necessary to specify the ----ssss option
  440.       explicitly, since the    ----tttt option by itself implies that ONLY
  441.       the footer line is to    be printed:
  442.  
  443.           setenv ZIPINFO --t
  444.           zipinfo -t storage        [only totals line]
  445.           zipinfo -st storage        [full listing]
  446.  
  447.       The ----ssss option, like ----mmmm and ----llll, includes headers and footers
  448.       by default, unless otherwise specified.  Since the
  449.       environment variable specified no footers and    that has a
  450.       higher precedence than the default behavior of ----ssss, an
  451.       explicit ----tttt option was necessary to produce the full
  452.       listing.  Nothing was    indicated about    the header, however,
  453.       so the ----ssss option was sufficient.  Note that both the ----hhhh and
  454.       ----tttt options, when used    by themselves or with each other,
  455.       override any default listing of member files;    only the
  456.  
  457.  
  458.  
  459.      Page 7                          (printed 5/6/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  467.  
  468.  
  469.  
  470.       header and/or    footer are printed.  This behavior is useful
  471.       when _z_i_p_i_n_f_o is used with a wildcard zipfile specification;
  472.       the contents of all zipfiles are then    summarized with    a
  473.       single command.
  474.  
  475.       To list information on a single file within the archive, in
  476.       medium format, specify the filename explicitly:
  477.  
  478.           zipinfo -m storage unshrink.c
  479.  
  480.       The specification of any member file,    as in this example,
  481.       will override    the default header and totals lines; only the
  482.       single line of information about the requested file will be
  483.       printed.  This is intuitively    what one would expect when
  484.       requesting information about a single    file.  For multiple
  485.       files, it is often useful to know the    total compressed and
  486.       uncompressed size; in    such cases ----tttt may be specified
  487.       explicitly:
  488.  
  489.           zipinfo -mt storage "*.[ch]" Mak\*
  490.  
  491.       To get maximal information about the ZIP archive, use    the
  492.       verbose option.  It is usually wise to pipe the output into
  493.       a filter such    as Unix    _m_o_r_e(1)    if the operating system    allows
  494.       it:
  495.  
  496.           zipinfo -v storage | more
  497.  
  498.       Finally, to see the most recently modified files in the
  499.       archive, use the ----TTTT option in    conjunction with an external
  500.       sorting utility such as Unix _s_o_r_t(1) (and _t_a_i_l(1) as well,
  501.       in this example):
  502.  
  503.           zipinfo -T storage | sort    -n +6 |    tail -15
  504.  
  505.       The ----nnnn option    to _s_o_r_t(1) tells it to sort numerically    rather
  506.       than in ASCII    order, and the ++++6666 option tells it to sort on
  507.       the sixth field after    the first one (i.e., the seventh
  508.       field).  This    assumes    the default short-listing format; if
  509.       ----mmmm or    ----llll is used, the    proper _s_o_r_t(1) option would be ++++7777.
  510.       The _t_a_i_l(1) command filters out all but the last 15 lines of
  511.       the listing.    Future releases    of _z_i_p_i_n_f_o may incorporate
  512.       date/time and    filename sorting as built-in options.
  513.  
  514.      TTTTIIIIPPPPSSSS
  515.       The author finds it convenient to define an alias _i_i for
  516.       _z_i_p_i_n_f_o on systems that allow    aliases    (or, on    other systems,
  517.       copy/rename the executable, create a link or create a
  518.       command file with the    name _i_i).  The _i_i usage    parallels the
  519.       common _l_l alias for long listings in Unix, and the
  520.       similarity between the outputs of the    two commands was
  521.       intentional.
  522.  
  523.  
  524.  
  525.      Page 8                          (printed 5/6/98)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))    IIIInnnnffffoooo----ZZZZIIIIPPPP ((((3333    NNNNoooovvvveeeemmmmbbbbeeeerrrr 1111999999997777 ((((vvvv2222....22222222))))))))       ZZZZIIIIPPPPIIIINNNNFFFFOOOO((((1111LLLL))))
  533.  
  534.  
  535.  
  536.      BBBBUUUUGGGGSSSS
  537.       As with _u_n_z_i_p, _z_i_p_i_n_f_o's ----MMMM (``more'') option    is overly
  538.       simplistic in    its handling of    screen output; as noted    above,
  539.       it fails to detect the wrapping of long lines    and may
  540.       thereby cause    lines at the top of the    screen to be scrolled
  541.       off before being read.  _z_i_p_i_n_f_o should detect    and treat each
  542.       occurrence of    line-wrap as one additional line printed.
  543.       This requires    knowledge of the screen's width    as well    as its
  544.       height.  In addition,    _z_i_p_i_n_f_o    should detect the true screen
  545.       geometry on all systems.
  546.  
  547.       _z_i_p_i_n_f_o's listing-format behavior is unnecessarily complex
  548.       and should be    simplified.  (This is not to say that it will
  549.       be.)
  550.  
  551.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  552.       _l_s(1), _f_u_n_z_i_p(1L), _u_n_z_i_p(1L),    _u_n_z_i_p_s_f_x(1L), _z_i_p(1L),
  553.       _z_i_p_c_l_o_a_k(1L),    _z_i_p_n_o_t_e(1L), _z_i_p_s_p_l_i_t(1L)
  554.  
  555.      UUUURRRRLLLL
  556.       The Info-ZIP home page is currently at
  557.       http://www.cdrom.com/pub/infozip/ .
  558.  
  559.      AAAAUUUUTTTTHHHHOOOORRRR
  560.       Greg ``Cave Newt'' Roelofs.  ZipInfo contains    pattern-
  561.       matching code    by Mark    Adler and fixes/improvements by    many
  562.       others.  Please refer    to the CONTRIBS    file in    the UnZip
  563.       source distribution for a more complete list.
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.      Page 9                          (printed 5/6/98)
  592.  
  593.  
  594.  
  595.